<script setup>

import ConsultItem from '@/components/ConsultItem.vue'

const handlePageChange = (currentPage, pageSize) => {
  console.log('currentPage:', currentPage, 'pageSize:', pageSize)
}
</script>

<template>
  <div class="consult">
    <div class="consult-content">
      <div class="consult-content-main">
        <div v-for="item in 18">
          <ConsultItem></ConsultItem>
        </div>
      </div>

      <el-pagination :total="1000" background layout="prev, pager, next" :page-size="18" @change="handlePageChange" />
    </div>
  </div>
</template>

<style lang="scss" scoped>
.consult {
  width: 100%;
  display: flex;
  justify-content: center;
  padding-top: 20px;

  &-content {
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;

    &-main {
      width: 100%;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      column-gap: 20px;
      row-gap: 40px;
    }


  }
}
</style>